package com.eerl.pdev.werl.impl;

import com.eerl.pdev.util.EToolPluginConsoleToolWindowFactory;
import com.eerl.pdev.werl.MsgHandler;
import com.ericsson.otp.erlang.OtpErlangTuple;
import com.intellij.openapi.project.Project;

import java.util.Map;

public class DefaultMsgHandler implements MsgHandler {

    private Project project;

    public DefaultMsgHandler(Project project) {
        this.project = project;
    }

    @Override
    public String getMatchCase() {
        return "default";
    }

    @Override
    public void handle(Map<Integer, Integer> state, OtpErlangTuple object) {
        EToolPluginConsoleToolWindowFactory.errToConsole(project, "cannot deal data: " + object);
    }
}
